﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransControlSystem.Model
{
    /// <summary>
    /// 系统配置表
    /// </summary>
    public class Config : ObservableObject
    {
        /// <summary>
        /// 主键
        /// </summary>
        private int _Id;
        /// <summary>
        /// 主键
        /// </summary>
        public int Id
        {
            get { return _Id; }
            set
            {
                _Id = value;
                RaisePropertyChanged(() => Id);
            }
        }
        /// <summary>
        /// 配置名称 唯一键
        /// </summary>
        private string _Name;
        /// <summary>
        /// 配置名称
        /// </summary>
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                RaisePropertyChanged(() => Name);
            }
        }
        /// <summary>
        /// 配置参数
        /// </summary>
        private string _Value;
        /// <summary>
        /// 配置参数
        /// </summary>
        public string Value
        {
            get { return _Value; }
            set
            {
                _Value = value;
                RaisePropertyChanged(() => Value);
            }
        }
    }
}
